package com.itmg.vo;

import java.io.Serializable;
import java.util.List;

import com.itmg.util.MD5Util;

public class SearchResultItemVO implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	//////////////公共部分////////////////
	private String productMd5;
	//产品详情
	private String productName; //商品名
	private String productID; //商品编码
	private String comment;  //商品説明分
	private String productUrl; //商品URL
	private String makerName; //制造厂名
	private String smallImageUrl; //小图片
	private String bigImageUrl; //大图片
	private int lowestPrice;//最低价
	private int maxPrice;//最高价
	private double rmbPrice;
	private double myPrice;
	private String saleStartTime; //开始销售时刻
	private String saleEndTime; //结束销售时刻
	//排序情况
	private Integer pvRanking; //在范畴内的受欢迎排列次序
	//店铺情况
	//原网站情况
	private String shopName; //店舗名
	private String shopUrl; //店舗URL
	//来源情况
	private String sourceSiteName;
	
	private int count; //拍卖的竞标次数
	private int nowPrice;
	
	private Double evaluation;
	
	private List<String> xing;
////////////////////////////////////
    //kakaku
	//private String ProductID;
	//private String ProductName;
	//private String MakerName; //制造厂名
	//private String SaleDate; //发售日
	//private String Comment; //还有关产品的评语详细说明信息的一部分
	//private String CategoryName; //范畴名
	//private Integer PvRanking; //在范畴内的受欢迎排列次序
//	private Float TotalScoreAve; //满足度
	//private String ImageUrl;
	//private String ItemPageUrl;
	//private String BbsPageUrl;
	//private String ReviewPageUrl;
	//private Integer LowestPrice;
	//private Integer NumOfBbs;
	
	//rakuten
	//private String itemName; //商品名
	//private String itemCode; //商品编码
	//private String itemPrice; //商品价格
	//private String itemCaption; //商品説明分
	//private String itemUrl; //商品URL
	//private String affiliateUrl; //成果报酬型广告URL
	//private String imageFlag; //商品画像有无标志
	//private String smallImageUrl; //商品画像64x64URL
	//private String mediumImageUrl; //商品画像128x128URL
	//private String availability; //销售可能标志
	//private String taxFlag; //消费税标志
	//private String postageFlag; //运费标志
	//private String creditCardFlag; //信用卡利用可能标志
	//private String shopOfTheYearFlag; //
	//private String affiliateRate; //成果报酬型广告利用利率
	//private String startTime; //开始销售时刻
	//private String endTime; //结束销售时刻
	//private String reviewCount; //批评件数
	//private String reviewAverage; //批评平均
	//private String shopName; //店舗名
	//private String shopCode; //店铺编码
	//private String shopUrl; //店舗URL
	//private String genreId; //种类ID
	
	//yahoo
	//private String ResultSet;
	//private String Query;
	//private String Hit;
	//private String Url;
	//private String Name;
	//private String Description;
	//private String Headline;
	//private String Availabilit; //Availability
	//private String Code;
	//private String PersonId;
	//private String ProductId;
	//private String JanCode;
	//private String IsbnCode;
	//private String Model;
	//private String IsBestStore;
//	private String Rate;
	//private String Count;
	//private String Small;
	//private String Medium;
	//private String Price;
	//private String PriceLabel;
	//private String FixedPrice;
	//private String SalePrice;
	//private String Amount;
	//private String Times;
	//private String Method;
	//private String From;
	//private String To;
	//private String Hits;
	public SearchResultItemVO() {
		// TODO Auto-generated constructor stub
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductID() {
		return productID;
	}

	public void setProductID(String productID) {
		this.productID = productID;
	}
	public String getProductUrl() {
		return productUrl;
	}
    
	public double getRmbPrice() {
		return rmbPrice;
	}

	public void setRmbPrice(double rmbPrice) {
		this.rmbPrice = rmbPrice;
	}

	public double getMyPrice() {
		return myPrice;
	}

	public void setMyPrice(double myPrice) {
		this.myPrice = myPrice;
	}

	public void setProductUrl(String productUrl) {
		this.productUrl = productUrl;
	}

	public String getMakerName() {
		return makerName;
	}

	public void setMakerName(String makerName) {
		this.makerName = makerName;
	}

	public String getSmallImageUrl() {
		return smallImageUrl;
	}

	public void setSmallImageUrl(String smallImageUrl) {
		this.smallImageUrl = smallImageUrl;
	}

	public String getBigImageUrl() {
		return bigImageUrl;
	}

	public void setBigImageUrl(String bigImageUrl) {
		this.bigImageUrl = bigImageUrl;
	}
	
	public int getLowestPrice() {
		return lowestPrice;
	}

	public void setLowestPrice(int lowestPrice) {
		this.lowestPrice = lowestPrice;
	}

	public int getMaxPrice() {
		return maxPrice;
	}

	public void setMaxPrice(int maxPrice) {
		this.maxPrice = maxPrice;
	}

	public String getSaleStartTime() {
		return saleStartTime;
	}

	public void setSaleStartTime(String saleStartTime) {
		this.saleStartTime = saleStartTime;
	}

	public String getSaleEndTime() {
		return saleEndTime;
	}

	public void setSaleEndTime(String saleEndTime) {
		this.saleEndTime = saleEndTime;
	}

	public Integer getPvRanking() {
		return pvRanking;
	}

	public void setPvRanking(Integer pvRanking) {
		this.pvRanking = pvRanking;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public String getShopUrl() {
		return shopUrl;
	}

	public void setShopUrl(String shopUrl) {
		this.shopUrl = shopUrl;
	}
	
	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getProductMd5() {
		return productMd5;
	}

	public void setProductMd5(String productMd5) {
		this.productMd5 = productMd5;
	}
	public String getMyProductMd5()
	{
		StringBuffer sb = new StringBuffer();
		if(productName != null)
		{
			sb.append(productName);
		}
		if(productUrl != null)
		{
			sb.append(productUrl);
		}
		if(sb != null && !sb.toString().equals(""))
		{
			return MD5Util.MD5(sb.toString());
		}
		return null;
	}

	public String getSourceSiteName() {
		return sourceSiteName;
	}

	public void setSourceSiteName(String sourceSiteName) {
		this.sourceSiteName = sourceSiteName;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getNowPrice() {
		return nowPrice;
	}

	public void setNowPrice(int nowPrice) {
		this.nowPrice = nowPrice;
	}

	public List<String> getXing() {
		return xing;
	}

	public void setXing(List<String> xing) {
		this.xing = xing;
	}

	public Double getEvaluation() {
		return evaluation;
	}

	public void setEvaluation(Double evaluation) {
		this.evaluation = evaluation;
	}
}
